<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setCharacterEncoding("UTF-8");
	String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="<%=path%>/CSS/backLayout.css">
</head>
<body style="background: #f5f5f5">
<div class="main">
	<div class="weizhi">
	<c:if test="${xqid==null}">
		车辆基础资料>>车辆>>修改
	</c:if>
	<c:if test="${xqid!=null}">
		车辆基础资料>>车辆>>详情
	</c:if>
	</div>
	<div class="div_body" style="height: 1000px;box-shadow: 0 0 5px #cccccc;">
		<div class="div_form">
			<form action="<%=path%>/DrivingSys/updateCarByFid" class="form" onsubmit="return submit2();" method="post">
			<c:if test="${xqid==null}">
				<div class="jczl">
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">驾校&nbsp;:&nbsp;</span>
							<input  type="text" name="name"  value="${department.fnameL2}" readonly="readonly" style="color: gray;"/>
							<input type="hidden" name="fid" value="${car.fid}">
						</div>
						<div class="input_hang">
							<span class="gn_name">产地&nbsp;:&nbsp;</span>
							<input type="text" name="cfcd" value="${car.cfcd}">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">车牌号&nbsp;:&nbsp;</span>
							<input type="text" name="fnumber" value="${car.fnumber}" class="fnumber" onblur="yanzheng()">
							<input type="hidden"  value="${car.fnumber}" >
                            <span class="required">必填</span>
						</div>
						<div class="input_hang">
							<span class="gn_name">品牌&nbsp;:&nbsp;</span>
							<input type="text" name="cfpp" value="${car.cfpp}">
						</div> 
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">入户日期&nbsp;:&nbsp;</span>
							<input type="text" id="rhrq" name="cfrhrq" value="${car.cfrhrq}" onclick="WdatePicker({el:'rhrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'rhrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">保单号&nbsp;:&nbsp;</span>
							<input type="text" name="cfbdh" value="${car.cfbdh}">
						</div> 
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">车型&nbsp;:&nbsp;</span>
							<input type="text" name="fnameL2" value="${car.fnameL2}">
						</div>
						<div class="input_hang">
							<span class="gn_name">购买价格&nbsp;:&nbsp;</span>
							<input type="text" name="cfgmjg" id="gmjg" value="${car.cfgmjg}">
							<span style="font-size: 14px;color: red;display: none" class="jiage">请输入数字</span>
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">车架号&nbsp;:&nbsp;</span>
							<input type="text" name="cfcjh"  value="${car.cfcjh}">
						</div>
						<div class="input_hang">
							<span class="gn_name">购买日期&nbsp;:&nbsp;</span>
							<input type="text" id="gmrq" name="cfgmrq" value="${car.cfgmrq}" onclick="WdatePicker({el:'gmrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'gmrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">发动机号&nbsp;:&nbsp;</span>
							<input type="text" name="cffdjh" value="${car.cffdjh}">
						</div>
						<div class="input_hang">
							<span class="gn_name">理论耗油&nbsp;:&nbsp;</span>
							<input type="text" name="cfllyh" id="llhy" value="${car.cfllyh}">
							<span style="font-size: 14px;color: red;display: none" class="haoyou">请输入数字</span>
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">年检日期&nbsp;:&nbsp;</span>
							<input type="text" id="njrq" name="cfnjrq" value="${car.cfnjrq}" onclick="WdatePicker({el:'njrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'njrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">年检到期日&nbsp;:&nbsp;</span>
							<input type="text" id="njdqr" name="cfnjdqr" value="${car.cfnjdqr}" onclick="WdatePicker({el:'njdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'njdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">交强险日期&nbsp;:&nbsp;</span>
							<input type="text" id="jqxrq" name="cfjqxrq" value="${car.cfjqxrq}" onclick="WdatePicker({el:'jqxrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'jqxrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">交强险到期日&nbsp;:&nbsp;</span>
							<input type="text" id="jqxdqr" name="cfjqxdqr" value="${car.cfjqxdqr}" onclick="WdatePicker({el:'jqxdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'jqxdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">商业险日期&nbsp;:&nbsp;</span>
							<input type="text" id="syxrq" name="cfsyxrq" value="${car.cfsyxrq}" onclick="WdatePicker({el:'syxrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'syxrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">商业险到期日&nbsp;:&nbsp;</span>
							<input type="text" id="jsxdqr" name="cfsyxdqr" value="${car.cfsyxdqr}" onclick="WdatePicker({el:'jsxdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'jsxdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">二级维护日期&nbsp;:&nbsp;</span>
							<input type="text" id="ejwhrq" name="cfejwhrq" value="${car.cfejwhrq}" onclick="WdatePicker({el:'ejwhrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'ejwhrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">二级维护到期日&nbsp;:&nbsp;</span>
							<input type="text" id="ejwhdqr" name="cfejwhdqr" value="${car.cfejwhdqr}" onclick="WdatePicker({el:'ejwhdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'ejwhdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">综检日期&nbsp;:&nbsp;</span>
							<input type="text" id="zjrq" name="cfzjrq" value="${car.cfzjrq}" onclick="WdatePicker({el:'zjrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'zjrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">综检到期日&nbsp;:&nbsp;</span>
							<input type="text" id="zjdqr" name="cfzjdqr" value="${car.cfzjdqr}" onclick="WdatePicker({el:'zjdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'zjdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">发动机保养日期&nbsp;:&nbsp;</span>
							<input type="text" id="fdjbyrq" name="cfbyrq" value="${car.cfbyrq}" onclick="WdatePicker({el:'fdjbyrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'fdjbyrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">发动机保养到期日&nbsp;:&nbsp;</span>
							<input type="text" id="fdjbydqr" name="cfbydqr" value="${car.cfbydqr}" onclick="WdatePicker({el:'fdjbydqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'fdjbydqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">科目三通行证日期&nbsp;:&nbsp;</span>
							<input type="text" id="kmstxzrq" name="cfkmstxzrq" value="${car.cfkmstxzrq}" onclick="WdatePicker({el:'kmstxzrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'kmstxzrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">科目三通行证到期日&nbsp;:&nbsp;</span>
							<input type="text" id="kmstxzdqr" name="cfkmstxzdqr" value="${car.cfkmstxzdqr}" onclick="WdatePicker({el:'kmstxzdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							<img onclick="WdatePicker({el:'kmstxzdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">所属机构&nbsp;:&nbsp;</span>
								<select style="width: 234px;height: 31px" name="cfssjgid">
								<c:if test="${empty car.cfssjgid}">
									<option value="" style="font-size: 16px">请选择所属机构</option>
								</c:if>
								<c:if test="${not empty car.cfssjgid}">
									<option value="${car.cfssjgid}" style="font-size: 16px">${car.deptName}</option>
								</c:if>
							 		<c:forEach items="${departments}" var="departments" >
							 			<option value="${departments.fid}" style="font-size: 16px">${departments.fnameL2}</option>
							 		</c:forEach>
							 	</select>
						</div>
						<div class="input_hang">
							<span class="gn_name">备注&nbsp;:&nbsp;</span>
							<input type="text" name="fdescriptionL2" value="${car.fdescriptionL2}">
						</div>
					</div>
				</div>
				<div class="div_tj">
					<div>
                        <input type="submit" class="input_submit bc" value="">
					</div>
					<div>
                        <input type="button" class="input_back fh" value="" onclick="back()"/>
					</div>
				</div>
			</c:if>
			
			<c:if test="${xqid!=null}">
				<div class="jczl">
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">驾校&nbsp;:&nbsp;</span>
							<input  type="text" name="name"  value="${department.fnameL2}" readonly="readonly" style="color: gray;"/>
							<input type="hidden" name="fid" value="${car.fid}">
						</div>
						<div class="input_hang">
							<span class="gn_name">产地&nbsp;:&nbsp;</span>
							<input type="text" name="cfcd" value="${car.cfcd}" readonly="readonly" style="color: gray;">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">车牌号&nbsp;:&nbsp;</span>
							<input type="text" name="fnumber" value="${car.fnumber}" readonly="readonly" style="color: gray;">
						</div>
						<div class="input_hang">
							<span class="gn_name">品牌&nbsp;:&nbsp;</span>
							<input type="text" name="cfpp" value="${car.cfpp}" readonly="readonly" style="color: gray;">
						</div> 
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">入户日期&nbsp;:&nbsp;</span>
							<input type="text" id="rhrq" name="cfrhrq" value="${car.cfrhrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'rhrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px" style="color: gray;">
						</div>
						<div class="input_hang">
							<span class="gn_name">保单号&nbsp;:&nbsp;</span>
							<input type="text" name="cfbdh" value="${car.cfbdh}" readonly="readonly" style="color: gray;">
						</div> 
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">车型&nbsp;:&nbsp;</span>
							<input type="text" name="fnameL2" value="${car.fnameL2}" readonly="readonly" style="color: gray;">
						</div>
						<div class="input_hang">
							<span class="gn_name">购买价格&nbsp;:&nbsp;</span>
							<input type="text" name="cfgmjg" id="gmjg" value="${car.cfgmjg}" readonly="readonly" style="color: gray;">
							<span style="font-size: 14px;color: red;display: none" class="jiage">请输入数字</span>
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">车架号&nbsp;:&nbsp;</span>
							<input type="text" name="cfcjh"  value="${car.cfcjh}" readonly="readonly" style="color: gray;">
						</div>
						<div class="input_hang">
							<span class="gn_name">购买日期&nbsp;:&nbsp;</span>
							<input type="text" id="gmrq" name="cfgmrq" value="${car.cfgmrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'gmrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">发动机号&nbsp;:&nbsp;</span>
							<input type="text" name="cffdjh" value="${car.cffdjh}" readonly="readonly" style="color: gray;">
						</div>
						<div class="input_hang">
							<span class="gn_name">理论耗油&nbsp;:&nbsp;</span>
							<input type="text" name="cfllyh" id="llhy" value="${car.cfllyh}" readonly="readonly" style="color: gray;">
							<span style="font-size: 14px;color: red;display: none" class="haoyou">请输入数字</span>
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">年检日期&nbsp;:&nbsp;</span>
							<input type="text" id="njrq" name="cfnjrq" value="${car.cfnjrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'njrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">年检到期日&nbsp;:&nbsp;</span>
							<input type="text" id="njdqr" name="cfnjdqr" value="${car.cfnjdqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'njdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">交强险日期&nbsp;:&nbsp;</span>
							<input type="text" id="jqxrq" name="cfjqxrq" value="${car.cfjqxrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'jqxrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">交强险到期日&nbsp;:&nbsp;</span>
							<input type="text" id="jqxdqr" name="cfjqxdqr" value="${car.cfjqxdqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'jqxdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">商业险日期&nbsp;:&nbsp;</span>
							<input type="text" id="syxrq" name="cfsyxrq" value="${car.cfsyxrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'syxrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">商业险到期日&nbsp;:&nbsp;</span>
							<input type="text" id="jsxdqr" name="cfsyxdqr" value="${car.cfsyxdqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'jsxdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">二级维护日期&nbsp;:&nbsp;</span>
							<input type="text" id="ejwhrq" name="cfejwhrq" value="${car.cfejwhrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'ejwhrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">二级维护到期日&nbsp;:&nbsp;</span>
							<input type="text" id="ejwhdqr" name="cfejwhdqr" value="${car.cfejwhdqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'ejwhdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">综检日期&nbsp;:&nbsp;</span>
							<input type="text" id="zjrq" name="cfzjrq" value="${car.cfzjrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'zjrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">综检到期日&nbsp;:&nbsp;</span>
							<input type="text" id="zjdqr" name="cfzjdqr" value="${car.cfzjdqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'zjdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">发动机保养日期&nbsp;:&nbsp;</span>
							<input type="text" id="fdjbyrq" name="cfbyrq" value="${car.cfbyrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'fdjbyrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">发动机保养到期日&nbsp;:&nbsp;</span>
							<input type="text" id="fdjbydqr" name="cfbydqr" value="${car.cfbydqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'fdjbydqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">科目三通行证日期&nbsp;:&nbsp;</span>
							<input type="text" id="kmstxzrq" name="cfkmstxzrq" value="${car.cfkmstxzrq}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'kmstxzrq',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
						<div class="input_hang">
							<span class="gn_name">科目三通行证到期日&nbsp;:&nbsp;</span>
							<input type="text" id="kmstxzdqr" name="cfkmstxzdqr" value="${car.cfkmstxzdqr}" readonly="readonly" style="color: gray;">
							<img onclick="WdatePicker({el:'kmstxzdqr',dateFmt:'yyyy-MM-dd HH:mm:ss'})" 
				            src="<%=path%>/image/date.jpg"  align="absmiddle" style="padding-left: 15px">
						</div>
					</div>
					<div class="div_input_hang">
						<div class="input_hang">
							<span class="gn_name">所属机构&nbsp;:&nbsp;</span>
								<select style="width: 234px;height: 31px;color: gray" name="cfssjgid">
									<option value="${car.cfssjgid}" style="font-size: 16px">${car.deptName}</option>
							 	</select>
						</div>
						<div class="input_hang">
							<span class="gn_name">备注&nbsp;:&nbsp;</span>
							<input type="text" name="fdescriptionL2" value="${car.fdescriptionL2}" readonly="readonly" style="color: gray;">
						</div>
					</div>
				</div>
				<div class="div_tj">
					<!-- <div>
						<input type="submit" class="input_submit" value="确  定">
					</div> -->
					<div>
						<input type="button" class="input_back"  value="返  回" onclick="history.back(-1)"/>
					</div>
				</div>
			</c:if>
			</form>
		</div>
	</div>
</div>
</body>
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<%@ include file="/WEB-INF/JSP/ajax.jsp"%>
<script type="text/javascript">
	
	$("#llhy").blur(function(){
		//只能输入数字和小数点
		var re = /^\d+(?=\.{0,1}\d+$|$)/ 
		//理论油耗的值
		var llhy = $(this).val();
		//判断只能输入数字和小数点
		if(llhy == ""){
			$(".haoyou").css("display","none");
		}else if(!re.test(llhy)){
			$(".haoyou").css("display","inline");
			$(this).val("")
		}else{
			$(".haoyou").css("display","none");
		}
	})
	
	$("#gmjg").blur(function(){
		//只能输入数字和小数点
		var re = /^\d+(?=\.{0,1}\d+$|$)/ 
		//理论油耗的值
		var gmjg = $(this).val();
		//判断只能输入数字和小数点
		if(gmjg == ""){
			$(".jiage").css("display","none");
		}else if(!re.test(gmjg)){
			$(".jiage").css("display","inline");
			$(this).val("")
		}else{
			$(".jiage").css("display","none");
		}
	})
	
	//验证车牌号
function yanzheng(){
	var fnumber = $(".fnumber").val();
	var fnumber2 = $(".fnumber").next().val();
	if(fnumber == null || fnumber == ''){
		alert("车牌号不能未空")
		return false
	}
	if(fnumber == fnumber2){
		
	}else{
		$.ajax({
			 url:'<%=path%>/DrivingSys/queCarByFnumber', 
			 type: "post",
			 data:{'fnumber':fnumber},
			 dataType:"json",         	
			 success: function(json) {
				 
				 if(json == false){
				    alert("车牌号重复")
				    $(".fnumber").val("")
				 }
			 }
		})
	}
	
}

//阻止表单提交
function submit2(){
	var fnumber = $(".fnumber").val();
	if(fnumber == null || fnumber == ''){
		alert("车牌号不能未空")
		return false
	}
    //提交后把提交变成不可用，可阻止表单重复提交
    $("input[type='submit']").attr("disabled", "disabled");
}
    function back() {
        parent.closeSelectCard()

//        location = 'queryCar/look.action';
    }
</script>
</html>